package com.guoamo.mapdemo;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class MapDemoD {


    public static void main(String[] args) throws IOException {


//        Properties<String,String> p = new Properties();
//        Properties<String,Integer> p = new Properties();
        Properties p = new Properties();

        p.setProperty("name", "guoamo");
        p.setProperty("address", "xiamen");

//        System.out.println(p);
//        System.out.println(p.getProperty("name"));
        FileInputStream stream = new FileInputStream(new File("D:\\guomaolesson\\Java2503\\06-Javase-Map\\src\\com\\guoamo\\application.properties"));
        Properties properties = new Properties();
        properties.load(stream);
        System.out.println(properties);
    }
}
